﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace God.ShoppingWebApi.Entities
{
  public  class Permission : AuditedEntity<Guid>
    {
     
        /// <summary>
        /// 权限标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        public string Action { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime Create_time { get; set; }
        /// <summary>
        /// 更新日期
        /// </summary>
        public DateTime Update_time { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// api路径
        /// </summary>
        public string APIAction { get; set; }
        /// <summary>
        /// 是不是前台菜单
        /// </summary>
        public int IsMenu { get; set; }
        public Permission()
        {

        }
        public Permission(Guid cid, string title1, string action, int status, DateTime create_time, DateTime update_time, int parentId, string aPIAction, int isMenu, string title2, Guid? lastfierId)
        {
            Id = cid;
            Title = title1;
            Action = action;
            Status = status;
            Create_time = create_time;
            Update_time = update_time;
            ParentId = parentId;
            APIAction = aPIAction;
            IsMenu = isMenu;
            LastModificationTime = DateTime.Now;
            CreationTime = DateTime.Now;
            CreatorId = lastfierId;
            LastModifierId = lastfierId;

        }

    }
}
